import 'package:dio/dio.dart';
import 'package:rxdart/rxdart.dart';
import 'package:wanchong/bean/rec_video_entity.dart';
import 'package:wanchong/bean/video_entity.dart';
import 'package:wanchong/utils/http.dart';
/// 获取视频通用接口
// PublishSubject<UserInfoEntity> _getVideo<BaseResponse>(int page,int type) {
//   return Http.getInstance()
//       .get("v1/account", params: FormData.from({"type": type, "page": page}));
// }
/// 获取首页推荐接口
PublishSubject<RecVideoEntity> recVideo<BaseResponse>(int page) {
  return Http.getInstance()
      .get("v1/vedio_recommend", params: FormData.from({"type": 1, "page": page}));
}
/// 获取系统视频
PublishSubject<VideoEntity> sysVideo<BaseResponse>(int page) {
  return Http.getInstance()
      .get("v1/vedio_recommend", params: FormData.from({"type": 2, "page": page}));
}
/// 获取用户视频
PublishSubject<VideoEntity> userVideo<BaseResponse>(int page) {
  return Http.getInstance()
      .get("v1/vedio_recommend", params: FormData.from({"type": 2, "page": page}));
}